const searchMixin = {
  data() {
    return {
      pagers: [10, 20, 50],
      pager: {
        pageSize: 10,
        pageNum: 1,
        total: 0
      }
    }
  },
  methods: {
    async search() {
      const { pageSize, pageNum, list, total } = await this.tableRemote()
      this.pager = {
        pageSize,
        pageNum,
        total
      }
      this.tableData = [...list]
      console.log(this.tableData);
    },
    reset() {
      this.searchForm = this.$options.data().searchForm
    },
    cancel() {
      this.editItem = this.$options.data().editItem;
    },
    deleteRow(index) {
      this.deleteRemote(index)
    }
  }
}
export default searchMixin